<?php 
class ArrowCtrlToolbar extends ArrowTagContainer{ 

	private $actions = array();
	
	public function configure(){
		$this->addProperties(array(
			"ctrlId" => false
		));
	}
	
	public function init(){
		foreach($this->getChildren( "ArrowAbstractUIAction" ) as $action)
			$action->setDisplay(false);
		
	}
	
	public function generate(){
		$str = "<div class=\"".self::CTRL_NAMESPACE."-toolbar\">";
		$actions = $this->getChildren();
		foreach($actions as $action){
			$str.="<div class=\"".self::CTRL_NAMESPACE."-toolbar-element\">".$action->generate()."</div>";
		}
		$str.= "<div style=\"clear:both;\"></div></div>";
		return $str;
	}
	
	public function generateBlockStart(){
		return $this->generate();
	}

	public function generateBlockEnd(){
		return "";
		
	}

}
?>